package com.tenton.controller;

import com.tenton.entity.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName：StudentController
 * @Description：
 * @Author：tangdong
 * @Date：2022/10/23 20:32
 **/
@Controller
@Api(value = "学生信息控制层")
public class StudentController {

    @ApiOperation("查询所有信息")
    @GetMapping("/findAll")
    public Student findAll(){
        Student student = Student.builder()
                .id(1)
                .name("张三")
                .score(95.5)
                .build();
        return student;
    }
}
